package com.sky.mapper;

import com.sky.entity.ShoppingCart;

import java.util.List;

public interface ShoppingCartMapper {
    /**
     * 查看购物车
     * @return
     */
    List<ShoppingCart> select(ShoppingCart shoppingCart);

    /**
     * 添加购物车
     * @param shoppingCart
     */
    void insert(ShoppingCart shoppingCart);


    /**
     * 更新购物车
     * @param lodShoppingCart
     */
    void update(ShoppingCart lodShoppingCart);

    /**
     * 删除菜品或套餐
     * @param shoppingCart
     */
    void delete(ShoppingCart shoppingCart);

    /**
     * 清空购物车
     * @param userId
     */
    void deleteAll(Long userId);
}
